--Lua Game base script library initialization
local apppath = os.getenv("LUAGAME_APP_PATH");
local gamepath = os.getenv("LUAGAME_GAME_PATH");
trace(gamepath);
local m_package_path = package.path   
package.path = string.format("%s;%s?.lua;%s?/init.lua;%s?.lua;%s?/init.lua",   
    m_package_path, apppath,apppath,gamepath, gamepath) 
	
require "base/ObjectList"
require "base/Rect"
require "base/Object"
require "base/Line"
require "base/Rectangle"
require "base/Circle"
require "base/Ellipse"
require "base/Label"
require "base/ParticleSystem"
require "base/obb_collision"
require "base/key_syms"
require "base/mouse_defs"
require "base/EventManager"
require "base/FPSManager"
require "base/animation"

--this isn't required. enable if you need to do profiling.
require "base/instrumentation"

--Load up the main lua script
require "scripts/main"
